﻿

namespace Mulala.Cavan.Presentation.Mvc.ViewModel
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Presentation.Seedwork;
    using Mulala.Cavan.Domain.MainBoundedContext.InformationModule;
    using Mulala.Cavan.Domain.MainBoundedContext.SearchModule;
    using Mulala.Cavan.Domain.MainBoundedContext.SecurityModule;

    public class UserMessageViewModel : EntityModel<UserMessage, UserMessageSearch>, IUserMessageViewModel
    {
        public string Avatar { get; set; }

        public UserMessageViewModel()
        {
            this.Item = new UserMessage();
            this.Item.MessagerUser = new UserAccount();
            this.Item.MessagerUser.Roles = new List<Role>();
        }
    }

    public class UserMessagesViewModel : WebModel, IUserMessagesViewModel
    {
        public IList<IUserMessageViewModel> UserMessages
        {
            get;
            set;
        }

        public UserMessagesViewModel()
        {
            this.UserMessages = new List<IUserMessageViewModel>();
        }
    }
}
